<?php include APP_PATH . 'tpl/admin/header.php'; ?>
<h1>编辑日志</h1>
<form action="admin.php?action=articleadd" method="post">
    <div>
        <label>标题：</label>
        <input name="title" value="<?php echo $detail['title']; ?>">
    </div>
    <div>
        <label>分类：</label>
        <select name="catid">
            <option value="1">学习笔记</option>
            <option value="2" selected="selected">个人随想</option>
        </select>
    </div>
    <div>
        <label>内容：</label>
        <textarea name="content" id="editor" style="height: 300px;"><?php echo $detail['content']; ?></textarea>
        <script type="text/javascript">
            var ue = UE.getEditor('editor');
        </script>
    </div>
    <div>
        <button type="submit">提交</button>
    </div>

</form>
<?php include APP_PATH . 'tpl/admin/footer.php'; ?>